import { DEFAULT_LAYOUT } from '../base'
import { AppRouteRecordRaw } from '../types'
import permissionType from "@/utils/permissionType";

const PAGEVIEW: AppRouteRecordRaw = {
  path: '/page',
  name: 'pageview',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '看板查看',
    requiresAuth: true,
    icon: 'icon-menu',
    hideChildrenInMenu : false,
    order: 4,
  },
  children: [
    {
      path: 'page3',
      name: 'page3',
      component: () => import('@/views/page/page3/pc.vue'),
      meta: {
        locale: '销售订单生产进度',
        requiresAuth: true,
        roles: [permissionType.sysAdmin, permissionType.pageData_page3],
      },
    },
    {
      path: 'page4',
      name: 'page4',
      component: () => import('@/views/page/page4/pc.vue'),
      meta: {
        locale: '钢球订单生产进度',
        requiresAuth: true,
        roles: [permissionType.sysAdmin, permissionType.pageData_page4],
      },
    },
  ],
}

export default PAGEVIEW
